<template>
  <div>
     <div class="header">
         <span>
             {{title}}
         <svg t="1651479564379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2767" width="16" height="16"><path d="M512 1024A512 512 0 1 1 512 0a512 512 0 0 1 0 1024z m3.008-92.992a416 416 0 1 0 0-832 416 416 0 0 0 0 832zM448 448h128v384H448V448z m0-256h128v128H448V192z" fill="#1296db" p-id="2768"></path></svg>

         </span>
     </div>
     <div class="cont">
         <span class="cont-title">12321</span>
         <span class="cont-mid">17.1</span>
         <span><svg t="1651482590452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6296" width="16" height="16"><path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" p-id="6297" fill="#1afa29"></path></svg></span>
         <span><svg t="1651482500532" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3913" data-spm-anchor-id="a313x.7781069.0.i6" width="16" height="16"><path d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" p-id="3914" fill="#d81e06"></path></svg></span>
     </div>
     <div class="footer">
          <div class="charts" ref="charts"></div>
     </div>
  </div>
</template>

<script>
import * as echarts from 'echarts'
import { title } from '@/settings'
export default {
    data(){
        title
    },
    props:['title'],
mounted(){
      let lineCharts =  echarts.init(this.$refs.charts)
      lineCharts.setOption({
            xAxis:{
                show:false,
                type:'category'
            },
            yAxis:{
                show:false

            },
            series:[{
                type:'line',
                data:[60,20,70,27,50,37,60,30],
                itemStyle:{
                    opacity:0
                },
                lineStyle:{
                    color:'skyblue'
                },
                areaStyle:{
                    color:{
                        type:"linear",
                        x:0,
                        y:0,
                        x2:0,
                        y2:1,
                        colorStops:[{
                            offset:0,
                            color:"skyblue"
                        },
                        {
                            offset:1,
                            color:"#fff"
                        }
                        ]
                    }
                },
                smooth:true
            }],
            grid:{
                left:0,
                top:0,
                right:0,
                bottom:0
                }
      })
    }
}
</script>

<style>
.cont{
    margin-top: 20px;
}
.cont-title{
    margin-right: 50px;
    font-size: 30px;
}
.cont-mid{
    margin-right: 20px;
    font-size: 20px;
}
.charts{
    width: 100%;
    height: 50px;
}
</style>